<?php /* Smarty version 2.6.20, created on 2017-07-22 15:01:18
         compiled from admin_orderdetail.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin_orderdetail.htm', 7, false),array('modifier', 'get_spot_name', 'admin_orderdetail.htm', 93, false),array('modifier', 'number_format', 'admin_orderdetail.htm', 104, false),array('modifier', 'getdistrictname', 'admin_orderdetail.htm', 168, false),array('modifier', 'get_pick_city_name', 'admin_orderdetail.htm', 192, false),)), $this); ?>
<div class="order_detail">
<div class="w1">
    <h2>订单详情</h2>
    <table class="table">
    <?php $_from = $this->_tpl_vars['log']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
    <tr class="tr">
        <td width="80"><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d&nbsp;%H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d&nbsp;%H:%M:%S")); ?>
</td>
        <td><?php echo $this->_tpl_vars['list']['text']; ?>
</td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    </table>
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">订单信息</th>
            </tr>
        </thead>
        <tbody>
        <tr class="tr">
            <td width="50">订单编号</td>
            <td width="150"><?php echo $this->_tpl_vars['de']['order_id']; ?>
</td>
            <td width="50">订单状态</td>
            <td width="100"><b class="org"><?php echo $this->_tpl_vars['de']['statu_text']; ?>
</b></td>
            <td width="50">支付状态</td>
            <td width="150"><b><?php echo $this->_tpl_vars['de']['order_pay_status']; ?>
</b></td>
            <td width="50">配送状态</td>
            <td><b><?php echo $this->_tpl_vars['de']['order_ship_status']; ?>
</b></td>
        </tr>
        <tr class="tr">
            <td>支付方式</td>
            <td><?php echo $this->_tpl_vars['de']['payment_name']; ?>
</td>
             <?php if ($this->_tpl_vars['de']['shipping_id'] == 0): ?>
                <?php if (! empty ( $this->_tpl_vars['de']['pick_name'] )): ?>
            <td>配送方式</td>
            <td colspan="99">上门自取</td>
              <?php endif; ?>
          <?php else: ?>
            <td>配送方式</td>
            <td colspan="99"><?php echo $this->_tpl_vars['de']['shipping_name']; ?>
</td>
             <?php endif; ?>
        </tr>
        </tbody>
    </table>
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="4">物流信息</th>
            </tr>
        </thead>
        <tbody>
        <?php if (! empty ( $this->_tpl_vars['de']['shipping_company'] )): ?>
        <tr class="tr">
            <td>快递公司</td>
            <td><?php echo $this->_tpl_vars['de']['shipping_company']; ?>
</td>
            <td>运单号</td>
            <td><?php echo $this->_tpl_vars['de']['shipping_no']; ?>
</td>
        </tr>
        <?php endif; ?>
        <tr class="tr" colspan="4">
            <td> <a href="http://m.kuaidi100.com/index_all.html?postid=<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
" >查看物流信息</a></td>
        </tr>
         <!--<tr>   -->
            <!--<td width="80"></td>-->
            <!--<td colspan="3"><script src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/api/logistic.php?com=<?php echo $this->_tpl_vars['de']['shipping_name']; ?>
&nu=<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
"></script></td>-->
        <!--</tr>-->
        </tbody>
    </table>
    <table class="table alc">    
        <thead>
            <tr>
                <th class="partition" colspan="99">产品信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <!--<td class="al" width="80">编号</td>-->
                <td class="al">产品</td>
                <td width="100">场馆名称</td>
                <td width="200">座位</td>
                <td width="80">演出日期</td>
                <td width="50">单价</td>
                <td width="50">数量</td>
                <td width="50">总价</td>
            </tr>
            <?php $_from = $this->_tpl_vars['de']['product']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
            <tr>
                <!--<td class="al"><?php echo $this->_tpl_vars['list']['code']; ?>
</td>-->
                <td class="al <?php if ($this->_tpl_vars['list']['service']): ?>npb<?php endif; ?>">
                    <a target="_blank" href="index.php?m=product&s=detail&id=<?php echo $this->_tpl_vars['list']['product_id']; ?>
">
                        <?php echo $this->_tpl_vars['list']['name']; ?>

                    </a>
                </td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['spot_id'])) ? $this->_run_mod_handler('get_spot_name', true, $_tmp) : get_spot_name($_tmp)); ?>
</td>
                <td>
                    <?php if (! empty ( $this->_tpl_vars['list']['ticket_seat'] )): ?>
                    <?php $_from = $this->_tpl_vars['list']['ticket_seat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['vo']):
?>
                    <?php echo $this->_tpl_vars['vo']['seat']; ?>
<br/>
                    <?php endforeach; endif; unset($_from); ?>
                    <?php else: ?>
                    择优分配
                    <?php endif; ?>
                </td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['per_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
                <td <?php if ($this->_tpl_vars['list']['service']): ?>class="npb"<?php endif; ?>><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['list']['price'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
                <td <?php if ($this->_tpl_vars['list']['service']): ?>rowspan="2"<?php endif; ?>>x<?php echo $this->_tpl_vars['list']['num']; ?>
</td>
                <td <?php if ($this->_tpl_vars['list']['service']): ?>rowspan="2"<?php endif; ?>><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['list']['sum'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
            </tr>
            <?php if ($this->_tpl_vars['list']['product_give']): ?>
            <tr class="product_give">
                <td class="al">赠品</td>
                <td class="al">
                    <?php $_from = $this->_tpl_vars['list']['product_give']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['slist']):
?>
                        <p><?php echo $this->_tpl_vars['slist']['pname']; ?>
</p>
                    <?php endforeach; endif; unset($_from); ?>
                </td>
            </tr>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['list']['service']): ?>
            <tr class="other">
                <td class="al">服务</td>
                <td class="al">
                    <?php $_from = $this->_tpl_vars['list']['service']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['slist']):
?>
                        <p><?php echo $this->_tpl_vars['slist']['name']; ?>
</p>
                    <?php endforeach; endif; unset($_from); ?>
                </td>
                <td>
                    <?php $_from = $this->_tpl_vars['list']['service']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['slist']):
?>
                        <p><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['slist']['price']; ?>
</p>
                    <?php endforeach; endif; unset($_from); ?>
                </td>
            </tr>
            <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
            <tr>
                <td colspan="99" align="right" class="pr20">
                <!--商品重量: <?php echo $this->_tpl_vars['de']['weight']; ?>
kg &nbsp;&nbsp;-->
                商品总金额: <?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['cost']; ?>
&nbsp;&nbsp;
                配送费用: <?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['freight']; ?>
&nbsp;&nbsp;
                    积分抵扣金额: <?php echo $this->_tpl_vars['config']['money']; ?>
<?php if ($this->_tpl_vars['de']['cost_point'] > 0): ?><?php echo $this->_tpl_vars['de']['cost_point']; ?>
 <?php else: ?> 0.00 <?php endif; ?> &nbsp;&nbsp;
                订单总金额: <b class="red"><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['freight']+$this->_tpl_vars['de']['cost']; ?>
</b>
                </td>
            </tr>
            <?php if ($this->_tpl_vars['des']): ?>
            <tr>
                <td class="al" colspan="99">备注: <?php echo $this->_tpl_vars['de']['des']; ?>
</td>
            </tr>
            <?php endif; ?>
        </tbody>
    </table>
     <?php if ($this->_tpl_vars['de']['shipping_id'] != 0): ?>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">收货地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">收货人</td>
                <td><?php echo $this->_tpl_vars['de']['ship_name']; ?>
</td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><?php echo $this->_tpl_vars['de']['ship_mobile']; ?>
 <?php echo $this->_tpl_vars['de']['ship_tel']; ?>
</td>
            </tr>
            <tr>
                <td>收货地址</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['provinceid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['cityid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['areaid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo $this->_tpl_vars['de']['ship_addr']; ?>
</td>
            </tr>
        </tbody>
    </table>

     <?php else: ?>

      <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">取票地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">取票人</td>
                <td><?php echo $this->_tpl_vars['de']['pick_name']; ?>
</td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><?php echo $this->_tpl_vars['de']['pick_mobile']; ?>
</td>
            </tr>
            <tr>
                <td>取票城市</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['pick_provinceid'])) ? $this->_run_mod_handler('get_pick_city_name', true, $_tmp) : get_pick_city_name($_tmp)); ?>
</td>
            </tr>
              <tr>
                <td>取票地址</td>
                <td><?php echo $this->_tpl_vars['de']['pick_addr']; ?>
</td>
            </tr>
        </tbody>
    </table>


      <?php endif; ?>

    <?php if ($this->_tpl_vars['de']['invoice_type'] > 0): ?>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">发票信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">发票信息</td>
                <td>普通发票</td>
            </tr>

            <tr>
                <td>发票抬头</td>
                <td><?php echo $this->_tpl_vars['de']['invoice_company']; ?>
</td>
            </tr>
            <tr>
                <td>寄票地址：</td>
                <td><?php echo $this->_tpl_vars['de']['invoice_addr']; ?>
</td>
            </tr>
        </tbody>
    </table>
    <?php endif; ?>

    <?php if (! empty ( $this->_tpl_vars['de']['real_user_name'] )): ?>
    <table class="table">
        <thead>
        <tr>
            <th class="partition" colspan="99">实名信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td width="100">姓名</td>
            <td><?php echo $this->_tpl_vars['de']['real_user_name']; ?>
</td>
        </tr>
        <tr>
            <td>证件类型</td>
            <td>
                <?php if ($this->_tpl_vars['de']['real_card_type'] == 1): ?>
                身份证
                <?php else: ?>
                护照
                <?php endif; ?>
            </td>
        </tr>
        <tr>
            <td>证件号码</td>
            <td><?php echo $this->_tpl_vars['de']['real_card_no']; ?>
</td>
        </tr>
        </tbody>
    </table>
    <?php endif; ?>

</div>
</div>